import React, { Component } from 'react'
import Child from './BoxChild'
class View extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }
  getBut(e) {
    // console.log(e.target.innerText)
    alert(e.target.innerText)
  }
  render() {
    return (
      <div className="box">
        <Child
          title="Modal title"
          buttons={['Close', 'Save changes']}
          onClick={this.getBut}
        ></Child>
      </div>
    )
  }
}
export default View
